package com.ybbase.framework.mapper.system;

import com.ybbase.framework.model.po.system.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色权限对照表 Mapper 接口
 * </p>
 *
 * @author cg
 * @since 2019-11-26
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    /**
     * 查询出去循环的
     * @param roleIdsStr 角色编码集
     * @param type 类型 1去重 2不去重
     * @return List<RolePermission>
     * @author cg
     * @date 2019-12-01 18:02
     * @since cloud2.0
    */
    List<RolePermission> getRPlistByRoleIdsIsDis(@Param(value = "roleIds") String roleIdsStr,
                                                 @Param(value = "type") Integer type);

}
